<!DOCTYPE html>
<html   xmlns:th="http://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            margin: auto;
            text-align: center;
        }
    </style>
</head>
<body>
<table border="1">
    <tr>
        <td>菜单id</td>
        <td>菜单选项</td>
        <td colspan="2"><a th:href="@{add}">添加</a></td>
    </tr>
    <tr th:each="m:${menus}">
        <td th:text="${m.menu_id}"></td>
        <td th:text="${m.menu_name}"></td>
        <td><a th:href="@{'./xiugai?menu_id='+${m.menu_id}}" th:text="修改"></a></td>
        <td><a th:href="@{'./shan?menu_id='+${m.menu_id}}" th:text="删除"></a></td>
    </tr>
    </table>
</body>
</html>
